#

| Chapter 4 The Bourne Shell and Korn Shell |

## ulimit

    ulimit [options] [n]

Print the value of one or more resource limits, or, if `n` is specified, set a resource limit to `n`. Resource limits can be either hard (-H) or soft (-S). By default, ulimit sets both limits or prints the soft limit. The options determine which resource is acted on.

### Options

-H

  Hard limit. Anyone can lower a hard limit; only privileged users can raise it.

-S

  Soft limit. Must be lower than the hard limit.

-a

  Print all limits.

-c

  Maximum block size of core files.

-d

  Maximum kbytes of data segment or heap.

-f

  Maximum block size of files (the default option).

-n

  Maximum file descriptor plus 1.

-s

  Maximum kbytes of stack segment

-t

  Maximum CPU seconds.

-v

  Maximum kbytes of virtual memory.

Reference: typeset |  | Reference: umask